<template>
  <div class="system-role-container layout-padding">
    <div class="system-role-padding layout-padding-auto layout-padding-view">
      <div class="system-user-search mb15">

        <Auth :value="'memberAdd'" >
          <el-button size="default" type="success" class="ml10" @click="onOpenAddRole('add')"   >
            <el-icon>
              <ele-FolderAdd />
            </el-icon>
            新增会员
          </el-button>
        </Auth>
      </div>

    </div>

  </div>
</template>

<script setup lang="ts" name="baseSim">
import { defineAsyncComponent, reactive, onMounted, ref } from 'vue';
import {useBussApi} from "/@/api/buss/buss";
const Auth = defineAsyncComponent(() => import('/@/components/auth/auth.vue'));


const bussApi = useBussApi();
// const loginApi = useLoginApi();
// 引入组件
const PlatDialog = defineAsyncComponent(() => import('/@/views/plat/manage/edit_plat.vue'));

// 定义变量内容
const platDialogRef = ref();
const state = reactive<PlatPageState>({
  tableData: {
    data: [],
    total: 0,
    loading: false,
    param: {
      search: '',
      pageNum: 1,
      pageSize: 10,
    },
  }
});

// 打开新增角色弹窗
const onOpenAddRole = (type: string) => {
  platDialogRef.value.openDialog(type);
};
// 打开平台商弹窗
const onOpenEditRole = (type: string, row: Object) => {
  platDialogRef.value.openDialog(type, row);
};

// 页面加载时
onMounted(() => {

});
</script>

<style scoped lang="scss">
.system-role-container {
  .system-role-padding {
    padding: 15px;
    .el-table {
      flex: 1;
    }
  }
}
</style>
